How to sum the values of a series into a dataframe based on a mask numpy array

welcome to shbcf.ru